// 课消记录
import request from "@/utils/request";

// 获取课消记录列表
export function getListAPI(data) {
  return request({
    url: "/tCourseOrder/orderListThird",
    method: "get",
    params: data,
  });
}

// 获取某课消记录详情
export function getDetailAPI(data) {
  return request({
    url: "/tCourseOrder/orderDetailSecond",
    method: "post",
    data: data,
  });
}

// 查询课消总数
export function getCountAPI(data) {
  return request({
    url: "/tCourseOrder/orderCountSecond",
    method: "post",
    data: data,
  });
}

// 导出课消记录
export function exportClassAttendanceRecordAPI(data) {
  return request({
    method: "post",
    url: "/tCourseOrder/exportOrderListThird",
    responseType: "blob",
    headers: { "Content-Type": "application/json; application/octet-stream" },
    data: data,
  });
}
